//
//  UIBubbleLastSectionData.m
//  BabyNow
//
//  Created by 刘泽琛 on 14-6-19.
//  Copyright (c) 2014年 iMobile. All rights reserved.
//

#import "UIBubbleLastSectionData.h"

static UIBubbleLastSectionData *sharedSectionData = nil;

@implementation UIBubbleLastSectionData

+ (UIBubbleLastSectionData *)sharedSectionData {
    @synchronized(self){
        if(sharedSectionData == nil){
            sharedSectionData = [[self alloc] init];
        }
    }
    return sharedSectionData;
}

+ (id)allocWithZone:(NSZone *)zone
{
    @synchronized (self) {
        if (sharedSectionData == nil) {
            sharedSectionData = [super allocWithZone:zone];
            return sharedSectionData;
        }
    }
    return nil;
}

- (id)copyWithZone:(NSZone *)zone
{
    return self;
}

- (id)init
{
    @synchronized(self) {
        if (self = [super init]) {
            // code...
        }
    }
    return self;
}

- (void)getTableViewSection:(NSInteger)section row:(NSInteger)row {
    self.section = section;
    self.row = row;
    
    NSLog(@"模型中 section:%ld, row:%ld",self.section,self.row);
}

@end
